﻿using Inovout.Cloud.Applications.Security.Models;
using Inovout.Cloud.Applications.Security.Services;
using Inovout.Cloud.Web.Mvc;
using System.Linq;
using System.Web.Mvc;

namespace Inovout.Cloud.Console.Web.Controllers
{
    public class CredentialController : CloudController
    {
        public ActionResult My()
        {
            ApplicationUser applicationUser = Inovout.ComponentRegistry.Resolve<IApplicationUserService>().FindByApplication((Inovout.Cloud.Applications.Models.Application)base.Project.Applications.ToArray()[0]);
            return View(applicationUser);
        }
    }

}